package cn.topevery.garden.entity.po.event;

import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;

import java.time.LocalDateTime;

/**
 * 视频抓拍转案件记录
 *
 * @author whw
 * @date 2020/11/3
 */
@DbTable(tableName = "t_video_capture_to_event_record")
public class VideoCaptureToEventRecord {

    /** 主键ID */
    @DbTableField(columnName = "c_id", isKey = true, canInsert = false, dbType = DbTypeEnum.INTEGER)
    public int id;

    /** 记录ID */
    @DbTableField(columnName = "c_record_id", dbType = DbTypeEnum.VARCHAR)
    public String recordId;

    /** 关联案件id */
    @DbTableField(columnName = "c_event_id", dbType = DbTypeEnum.VARCHAR)
    public String eventId;

    /** 上报时间 */
    public Long collectTime;

    /** 上报时间 */
    @DbTableField(columnName = "c_collect_time", dbType = DbTypeEnum.DATE)
    public LocalDateTime collectDateTime;

    /** 透传字段 */
    @DbTableField(columnName = "c_extra", dbType = DbTypeEnum.VARCHAR)
    public String extra;

    /** 分析完成时间 */
    @DbTableField(columnName = "c_finished_time", dbType = DbTypeEnum.VARCHAR)
    public LocalDateTime finishedTime;

    /** 预置点位ID */
    @DbTableField(columnName = "c_index_code_tag", dbType = DbTypeEnum.VARCHAR)
    public String indexCodeTag;

    /** 图片高度 */
    @DbTableField(columnName = "c_img_height", dbType = DbTypeEnum.INTEGER)
    public Integer imgHeight;

    /** 图片宽度 */
    @DbTableField(columnName = "c_img_width", dbType = DbTypeEnum.INTEGER)
    public Integer imgWidth;

    /** 监控点编码 */
    @DbTableField(columnName = "c_index_code", dbType = DbTypeEnum.VARCHAR)
    public String indexCode;

    /** 违规类型 */
    @DbTableField(columnName = "c_intelligent_type", dbType = DbTypeEnum.VARCHAR)
    public String intelligentType;

    /** 违规类型名称 */
    @DbTableField(columnName = "c_intelligent_type_name", dbType = DbTypeEnum.VARCHAR)
    public String intelligentTypeName;

    /** 所属组织编码 */
    @DbTableField(columnName = "c_org_code", dbType = DbTypeEnum.VARCHAR)
    public String orgCode;

    /** 预置点编码 */
    @DbTableField(columnName = "c_preset_code", dbType = DbTypeEnum.VARCHAR)
    public String presetCode;

    /** 违规区域信息 */
    @DbTableField(columnName = "c_violation_areas", dbType = DbTypeEnum.VARCHAR)
    public String violationAreas;

    /** 图片uuid */
    @DbTableField(columnName = "c_uuid", dbType = DbTypeEnum.VARCHAR)
    public String uuid;

    /** 图片url */
    @DbTableField(columnName = "c_pic_url", dbType = DbTypeEnum.VARCHAR)
    public String picUrl;

    /** 缩略图url */
    @DbTableField(columnName = "c_thumbnail_url", dbType = DbTypeEnum.VARCHAR)
    public String thumbnailUrl;

    /** 车牌号码 */
    @DbTableField(columnName = "c_plate_no", dbType = DbTypeEnum.VARCHAR)
    public String plateNo;

    /** 带违规框的图片（需要在平台开启开关以后该属性才有值） */
    @DbTableField(columnName = "c_alarm_original_pic", dbType = DbTypeEnum.VARCHAR)
    public String alarmOriginalPic;

    /** 审核状态，0：未审核；1：立案；2：暂不立案；3：再学习；4：结案 */
    @DbTableField(columnName = "c_audited", dbType = DbTypeEnum.VARCHAR)
    public Integer audited;

    /** 创建时间 */
    @DbTableField(columnName = "c_create_time", canUpdate = false, dbType = DbTypeEnum.VARCHAR)
    public LocalDateTime createTime;
}
